home *** CD-ROM | disk | FTP | other *** search
/ Hackers Underworld 2: Forbidden Knowledge / Hackers Underworld 2: Forbidden Knowledge.iso / HACKING / VAXVMS.TXT < prev    next >
Text File  |  1994-07-17  |  7KB  |  167 lines

  1.  
  2.                 _____________________________
  3.                /_____________________________\
  4.                /                             \
  5.               |       Inside Vax/Vms        |
  6.               |   Using Command Procedures  |
  7.               |                             |
  8.  |            By               |
  9.                |       Master Blaster        |
  10.               \_____________________________/
  11.               Advanced Telecommunications Inc.
  12.  
  13.  
  14. Note: The following is geared for the more advanvced hacker.
  15.  
  16.      Part 1: Using Command Procedures.
  17.              ----- ------- ----------
  18.      You  can  use  command procedures to automate  sequences  of 
  19. commands that you use quite often.  For example,  if you  always 
  20. se  the  DIRECTORY command after you move to  a  Sub-Directory 
  21. here  work  files  are  kept,  you can write  a  simple  command 
  22. procedure to issue the SET DEFAULT and DIRECTORY commands for you.  
  23. he following example, GO_DIR.COM, contains two commands:
  24. $ Set Default [perry.accounts]
  25. $ directory
  26. Instead of using each command alone,  you can execute  GO_DIR.COM 
  27. with the @ command:
  28. $ @Go_Dir
  29.  
  30. his  command tells the DCL command interpreter to read the  file 
  31. O_DIR.COM and executes the commands in the file.   So the command 
  32. nterpreter  sets  your  default  directory  to[PERRY.ACCOUNTS]  and 
  33. sues the DIRECTORY command.
  34.  
  35. ote: DCL means Digital Command Language. (sorry)
  36.  
  37.  
  38. Formatting Command Procedures 
  39. ---------- ------- ----------
  40.     Use  the  DCL command CREATE to create and format a  command 
  41. rocedure.   When you name the command procedure,  use the default 
  42. ile type COM.  If you use this default, you don't have to use the 
  43. ile type when you execute the procedure with the @ command.
  44. Command  procedures  contain DCL commands that you want  the  DCL 
  45. command  intepreter  to execute and data lines that are  used  by 
  46. hese commands.  Commands must begin with a dollar sign.  You can 
  47. tart the command string just  after the dollar sign.
  48. Data lines do not start with a dollar sign.  Data lines are  used 
  49. as  input  data for commands.   Data lines are used by  the  most 
  50. ecently issued command.
  51.  
  52. he  following  examle shows command and data lines in a  command 
  53. rocedure.
  54. $ mail
  55. SEND
  56. HOMAS
  57. Y MEMO
  58. id you get my memo?
  59.  
  60.  Show users thomas
  61. The first line is a command and must start with a "$".   The next 
  62. ines  are data lines that are used by the mail  function;  these 
  63. lines must not start with "$".
  64. Using Multiple Lines for One Command
  65. ----- -------- ----- --- --- -------
  66.  
  67.     If  you are writing a command that includes many  qualifers, 
  68. ou  can make the command procedure more readable by listing  the 
  69. ualifers on seperate lines rather than running them  together.  To 
  70. o this, use the hyphen as a continuation character.  Don't start 
  71. he continued line with "$". For example:
  72. $ print test.out -
  73.           /after=18:00 -
  74.          /copies=10 -
  75.          /queue=lpb0:
  76.  
  77.  
  78. xecuting Command Procedures
  79. -------- ------- ----------
  80.     You can execute command procedures in two modes: interactive 
  81. nd  batch.   In  interactive mode,  the commands in the  command 
  82. rocedure are executing as if you were typing them.   You  cannot 
  83. xecute  any other commands from your computer.   In batch  mode, 
  84. he   system  creates  a  seprate  process  to  run  the  command 
  85. procedure.   After  you use a batch job you  can continue to  use 
  86. e system while it executes.
  87.  
  88. xecuting Command Procedures Interactively
  89. -------- ------- ---------- -------------
  90.      To  execute a command procedure interactively,  type the "@" 
  91. command followed by the file specifications.   If you don't enter 
  92. e entire command specification, the system will use the current 
  93. disk, directory, and file default. 
  94. Changing Command Levels
  95. -------- ------- ------
  96.      A  command  level  is the DCL level  from  which  you  issue 
  97. commands.   When  you log in and type commands at your  Computer, 
  98. u  are issuing commands at your level zero.   If you execute  a 
  99. procedure,  the commands in the procedure are executed at command 
  100. evel  1.   When the procedure ends and the DCL prompt is on your 
  101. creen, you are back at levil zero.
  102. A System Login File
  103. - ------ ----- ----
  104.      If  a system login file exists,  it is executed  before  the 
  105. personal  file.   When  the system login file  ends,  control  is 
  106. assed to the personal login file.  System and group login files 
  107. low  a  system manager to make sure certian files are  executed 
  108. when a person logs in.
  109. To make a system login file, you have to have a managers account, 
  110. you use the name SYS$SYLOGIN to make the login file.
  111.  
  112. Personal Login Files
  113. ------- ----- -----
  114.      
  115.     After  executing a system or group login  file,  the  system 
  116. xecutes  a  personal login file.   Use a personal login file  to 
  117. execute  commands  that  you  want to  that  you  want  to  issue 
  118. verytime you login.  Name the login command procedure LOGIN.COM 
  119. d put it in the default login directory.
  120.  
  121. Defineing Parameters or Qualifers
  122. --------- ---------- -- ---------
  123.      You  can  create  a command procedure  that  specifies  only 
  124. parameters and(or)  qualifers and then use the command  procedure 
  125. thin a DCL command string.   This type of command procedure  is 
  126. useful  when there is a set of parimeters or qualifiers that  you 
  127. requently use with one or more particular commands.   To execute 
  128. he command string where you would normally use the qualifiers or 
  129. arameters.
  130. For  example:  You could create a command procedure that contains 
  131. these qualifiers.                 
  132. /DEBUG/SYMBOL_TABLE/MAP/FULL/CROSS_REFERENCE
  133.  
  134. o  use this command procedure,  execute it on the  command  line 
  135. here you would otherwise place qualifiers.   For example, if you 
  136. ame  the  command  procedure  DEFLINK.COM,  you  would  use  the 
  137. ollowing   command  line  to  link  to  an  object  module  name 
  138. YNAPSE.OBJ with the qualifiers that you specified in the  command 
  139. rocedure:
  140. $ LINK SYNAPSE@DEFLINK
  141.  
  142. he  next  example shows a command procedure named PARM.COM  that 
  143. contains parameters:
  144. HAP1, CHAP2
  145. To execute the procedure, use it in a command string in place of a 
  146. parameter name: 
  147. $ DIRECTORY @PARAM
  148.  
  149.  
  150.  
  151. s  the others in this set are completed,  they should stay in  a 
  152. oup.
  153.  
  154.  
  155.  
  156.  
  157.  
  158. ________________________________________________
  159.                                                 \
  160. H)ackRite 1986 - Advanced Telecommunications Inc.
  161. ________________________________________________/ 
  162.  
  163.  
  164.                                                             
  165. DOWNLOADED FROM P-80 SYSTEMS.....
  166.  
  167.